<?php

if( isset( $assets ) && is_array( $assets ) )
	foreach( array( 'js', 'css' ) as $assets_type )
		if( isset( $assets[$assets_type] ) )
			assets::instance( ) ->$assets_type( @$assets[$assets_type] );

?>

<h1><?php echo form_prep($title); ?></h1>

<?php echo visitor::instance()->flash('reference_controller'); ?>

<?php echo $form->format_errors(); ?>
<?php echo $form->display(); ?>